<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<fmt:setBundle basename="messages" />
		<title><fmt:message key="title"/></title>
		<script type="text/javascript">
		
		</script>


	</head>

	<body>
		<table border=1 width="80%" align="center" height="100%">
			<tr>
				<td colspan=2>
					<jsp:include page="header.jsp"></jsp:include>
				</td>
			</tr>
			<tr>
				<td width="20%">

					<jsp:include page="adminfunc.jsp"></jsp:include>


				</td>
			<td valign="top">

					<form action="SearchPro.do" method="post">

						<table cellpadding=4 cellspacing=2 border=0>

							<tr>
								<td>

									Partnuber
									<input type="text" name="num">

								</td>
								<td>
									Description
									<input type="text" name="decs">

								</td>
								<td>
									<input type="submit" value="Search">
								</td>
							</tr>
                              <a href="partstobeOrdered.do">List All the Parts that needs to be reordered</a>
						</table>
					</form>

					<table border='1' cellspacing='2' cellpadding='2'>
					<th>
					Product Number
					</th>
					<th>
					Product Instock
					</th>
						<c:forEach var="product" items="${requestScope.list}"
							varStatus="listpro">
							<tr>
								<td>
									${product.productnum}
								</td>
								
								<td>
									${product.instock}
								</td>
								<td>
									<a href="EditProduct.do?productnum=${product.productnum}">Edit</a>
								</td>
							</tr>
						</c:forEach>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
